package cn.leaf.uc.api.dto;

import cn.leaf.uc.api.entity.UserEntity;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *
 * description: 封装的用户信息
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-07 23:57:58
 * slogan: There are no two identical leaves in the world.
 *
 */
@Data
@Builder
public class UserInfo implements Serializable {

	private static final long serialVersionUID = -7657663783681647907L;

	/**
	 * 系统用户信息
	 */
	private UserEntity userEntity;

	/**
	 * 系统权限标识组
	 */
	private List<String> permissions;

	/**
	 * 系统角色标识组
	 */
	private List<Long> roleIds;

	/**
	 * 登录类型　1：用户名密码登录　2：手机号登录　3：社交登录
	 */
	private int type;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 租户ID
	 */
	private String tenantId;
}
